import request from '@/utils/request'
// 获取所有权限
export const getAllPermissionRequest = () => request.get('/sys/permission')
// 根据id获取权限
export const getPermissionByIdRequest = id => request.get(`/sys/permission/${id}`)
// 根据id更新权限
export const updatePermissionRequest = data => request.put(`/sys/permission/${data.id}`, data)
// 根据is删除权限
export const deletePermissionRequest = id => request.delete(`/sys/permission/${id}`)
// 新增权限
export const addPermissionRequest = data => request.post(`/sys/permission`, data)

// 获取权限列表
// export const getPermissionListRequest = params => request.get('/sys/assignPrem', { params })
